﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Message.aspx.cs" Inherits="Manage_Message" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/common.js" type="text/javascript"></script>

    <style type="text/css">
        html, body {
            height: 100%;
            margin: 0px;
        }

        body {
            background-color: white;
            color: #004779;
            font-family: Verdana, 宋体;
            font-size: 12px;
            line-height: 20px;
            margin: 0px;
            padding: 0px;
        }

        a:link {
            color: #333333;
            text-decoration: none;
        }

        a:visited {
            color: #333333;
            text-decoration: none;
        }

        a:hover {
            color: #FF0000;
            text-decoration: none;
        }

        a { blr: expression(this.onFocus=this.blur()) }

        /*-- IE下消除点击图片文字后出现的虚线框代码 */

        /*home*/

        .home_listwrap {
            background-color: #E3F2FF;
            border: 1px solid #AFD6F7;
            height: 50%;
            width: 100%;
        }

        .home_listtitle {
            height: 34px;
            padding: 0px 12px;
            width: 100%;
        }

        .home_listtitle img {
            padding-right: 6px;
            vertical-align: middle;
        }

        .home_listtitle .Right {
            color: #205C7A;
            font-size: 12px;
            font-weight: bold;
        }

        .home_listcontainer {
            background: #FBFFFF;
            border: 1px solid #C3DFF6;
            height: auto;
            line-height: 26px;
            margin: auto;
            margin-bottom: 5px;
            padding: 6px 10px;
            width: 98%;
        }

        .home_listcontainer a {
            height: auto;
            width: 90%;
        }

        .home_listcontainer .Right {
            color: #666666;
            font-family: Arial, Helvetica, sans-serif;
            text-align: right;
        }

        .home_list_navwrap {
            background-color: #E3F2FF;
            border: 1px solid #AFD6F7;
            height: 110px;
            width: 100%;
        }

        .home_list_navtion {
            background: #FBFFFF;
            border: 1px solid #C3DFF6;
            height: auto;
            line-height: 26px;
            margin: auto;
            margin-bottom: 4px;
            margin-top: 4px;
            padding: 6px 10px;
            width: 99%;
        }

        .sortable { table-layout: fixed }

        .sortable th, .sortable td {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    /*End home*/ 
    </style>
    <script type="text/javascript">
        <!--
        $(function() {
            // updatedata();
            //   window.setInterval(updatedata, 30000);
            //   $('#table1').html('<tr><td valign="top" id="DailyTask"><a href="#">222<a></td><td align="right" style="width: 100px;">2012-10-10</td></tr><tr><td valign="top" id="DailyTask">3333</td><td align="right" style="width: 100px;">2012-10-10</td></tr>')
        });

        function openMessage(id) {
            if (id == '1') {
                window.parent.openURL(101, '通知公告列表', 'WebPages/Message/MessageList.aspx?type=' + id);
            } else if (id == '2') {
                window.parent.openURL(102, '资讯列表', 'WebPages/Message/MessageList.aspx?type=' + id);
            } else if (id == '3') {
                window.parent.openURL(103, '文件下载列表', 'WebPages/Message/MessageList.aspx?type=' + id);
            } else if (id == '4') {
                window.parent.openURL(104, '学术园地列表', 'WebPages/Message/MessageList.aspx?type=' + id);
            }


        }

-->
    </script>
</head>
<body>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Timer ID="Timer1" runat="server" Interval="30000" ontick="Timer1_Tick">
            </asp:Timer>

            <div>
                <table width="100%" style="height: 100%;" border="0" cellspacing="10" cellpadding="0">
                    <tr style="height: 50%;">
                        <!-- 待完成日程 -->
                        <td valign="top">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                   class="home_listwrap" style="word-break: break-all;">
                                <tr>
                                    <td valign="top">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                               class="home_listtitle">
                                            <tr>
                                                <td class="Right"><img src="images/ico/ico_77.gif"/>通知公告</td>
                                                <td align="right">
                                                    <a href="#" onclick="openMessage('1')"
                                                       class="color_blue">
                                                        更多&gt;&gt;
                                                    </a>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                               class="home_listcontainer">
                                            <tr height="210">
                                                <td width="70%" valign="top">
                                                    <table width="100%" border="0" cellspacing="0"
                                                           cellpadding="0" id="table1">

                                                        <asp:Repeater ID="rpt1" runat="server">
                                                            <ItemTemplate>
                                                                <tr>
                                                                    <td valign="top">
                                                                        <a href="#" onclick="openDialogResize('WebPages/Message/MessageView.aspx?id=<%#Eval("M_Id").ToString() %>', 820, 600)"></a>
                                                                    </td>
                                                                    <td align="right" style="width: 150px;"><%#Convert.ToDateTime(Eval("M_Time").ToString()).ToString("yyyy-MM-dd HH:mm") %></td>
                                                                </tr>
                                                            </ItemTemplate>
                                                        </asp:Repeater>

                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <!-- 共享文档 -->
                        <td width="50%" valign="top">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                   class="home_listwrap" style="word-break: break-all;">
                                <tr>
                                    <td valign="top">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                               class="home_listtitle">
                                            <tr>
                                                <td class="Right"><img src="images/ico/ico_78.gif"/>资讯</td>
                                                <td align="right">
                                                    <a href="#" onclick="openMessage('2')"
                                                       class="color_blue">
                                                        更多&gt;&gt;
                                                    </a>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                               class="home_listcontainer">
                                            <tr height="210">
                                                <td width="70%" valign="top">
                                                    <table width="100%" border="0" cellspacing="0"
                                                           cellpadding="0">
                                                        <asp:Repeater ID="rpt2" runat="server">
                                                            <ItemTemplate>
                                                                <tr>
                                                                    <td valign="top">
                                                                        <a href="#" onclick="openDialogResize('WebPages/Message/MessageView.aspx?id=<%#Eval("M_Id").ToString() %>', 820, 600)"></a>
                                                                    </td>
                                                                    <td align="right" style="width: 150px;"><%#Convert.ToDateTime(Eval("M_Time").ToString()).ToString("yyyy-MM-dd HH:mm") %></td>
                                                                </tr>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <!-- 新行 -->
                    <tr style="height: 50%;">
                        <!-- 工作报告 -->
                        <td valign="top">
                            <table width="100%" style="height: 100%;" border="0" cellspacing="0" cellpadding="0"
                                   class="home_listwrap" style="word-break: break-all;">
                                <tr>
                                    <td valign="top">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                               class="home_listtitle">
                                            <tr>
                                                <td class="Right"><img src="images/ico/ico_79.gif"/>文件下载</td>
                                                <td align="right">
                                                    <a href="#" onclick="openMessage('3')"
                                                       class="color_blue">
                                                        更多&gt;&gt;
                                                    </a>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                               class="home_listcontainer">
                                            <tr height="210">
                                                <td width="70%" valign="top">
                                                    <table width="100%" border="0" cellspacing="0"
                                                           cellpadding="0">
                                                        <asp:Repeater ID="rpt3" runat="server">
                                                            <ItemTemplate>
                                                                <tr>
                                                                    <td valign="top">www.baidu.com</td>
                                                                    <td align="right" style="width: 150px;"><%#Convert.ToDateTime(Eval("M_Time").ToString()).ToString("yyyy-MM-dd HH:mm") %></td>
                                                                </tr>
                                                            </ItemTemplate>
                                                        </asp:Repeater>

                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <!-- 使用工具-->
                        <td width="50%" valign="top">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                   class="home_listwrap" style="word-break: break-all;">
                                <tr>
                                    <td valign="top">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                               class="home_listtitle">
                                            <tr>
                                                <td class="Right"><img src="images/ico/ico_80.gif"/>学术园地&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://10.10.115.200" target="_blank">进入论坛</a></td>
                                                <td align="right">
                                                    <a href="#" onclick="openMessage('4')"
                                                       class="color_blue">
                                                        更多&gt;&gt;
                                                    </a>
                                                </td>
                                            </tr>
                                        </table>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0"
                                               class="home_listcontainer">
                                            <tr height="210">
                                                <td width="70%" valign="top">
                                                    <table width="100%" border="0" cellspacing="0"
                                                           cellpadding="0">
                                                        <asp:Repeater ID="rpt4" runat="server">
                                                            <ItemTemplate>
                                                                <tr>
                                                                    <td valign="top">
                                                                        <a href="#" onclick="openDialogResize('WebPages/Message/MessageView.aspx?id=<%#Eval("M_Id").ToString() %>', 820, 600)"></a>
                                                                    </td>
                                                                    <td align="right" style="width: 150px;"><%#Convert.ToDateTime(Eval("M_Time").ToString()).ToString("yyyy-MM-dd HH:mm") %></td>
                                                                </tr>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick"/>
        </Triggers>
    </asp:UpdatePanel>
</form>
</body>
</html>